﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace VueShopApi.Entities 
{
	[JsonObject(MemberSerialization.OptIn), Table(Name = "sp_user_cart", DisableSyncStructure = true)]
	public partial class SpUserCart 
	{
		/// <summary>
		/// 主键
		/// </summary>
		[JsonProperty("cart_id"), Column(Name = "cart_id", DbType = "int(11) unsigned", IsPrimary = true, IsIdentity = true)]
		public int CartId { get; set; }

		/// <summary>
		/// 购物车详情信息，二维数组序列化信息
		/// </summary>
		[JsonProperty("cart_info"), Column(Name = "cart_info", StringLength = -1)]
		public string CartInfo { get; set; }

		[JsonProperty("created_at"), Column(Name = "created_at", DbType = "timestamp")]
		public DateTime? CreatedAt { get; set; }

		[JsonProperty("delete_time"), Column(Name = "delete_time", DbType = "timestamp")]
		public DateTime? DeleteTime { get; set; }

		[JsonProperty("updated_at"), Column(Name = "updated_at", DbType = "timestamp")]
		public DateTime? UpdatedAt { get; set; }

		/// <summary>
		/// 学员id
		/// </summary>
		[JsonProperty("user_id"), Column(Name = "user_id", DbType = "int(11) unsigned")]
		public int UserId { get; set; }

	}

}
